<template>
  <div class="top_header">
    <div class="top_h_title">
      <span>大气自然净化能力实时监控网格</span>
    </div>
    <div class="top_h_bottom_title">xx区xx管理平台</div>

    <div class="top_h_part h_part_l">
      <span>2020年8月31日</span>
      <span>周一</span>
      <span>19:00</span>
      <span>农历八月十一</span>
    </div>

    <div class="top_h_part h_part_r">
      <i class="cloud_icon"></i>
      <span>多云</span>
      <span>北风1~2级</span>
      <span>气温25~32摄氏度</span>
    </div>

    <div class="top_dashline dashline_l"></div>
    <div class="top_dashline dashline_r"></div>
  </div>
</template>

<script>
export default {
  name: 'IndexHeader',
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss">
.top_header {
  position: relative;
  height: 95px;

  .top_h_title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 900px;
    line-height: 95px;
    font-size: 34px;
    text-align: center;

    span {
      background: linear-gradient(to bottom, #fff, #9dffff);
      background-clip: text;
      color: transparent;
    }

    background-image: url('../../assets/img/header_mid_line.png');
    background-repeat: no-repeat;
    background-position: center 100%;
    background-size: contain;
  }

  .top_h_bottom_title {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    color: #9cedf9;
    font-size: 24px;

    &:after {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      content: '';
      height: 3px;
      width: 70px;
      background-color: #2fa4ea;
    }
  }

  .h_part_l {
    left: 75px;
  }
  .h_part_r {
    right: 75px;

    .cloud_icon {
      display: inline-block;
      height: 14px;
      width: 14px;
      background-image: url('../../assets/img/cloud_icon.png');
      background-repeat: no-repeat;
      background-position: 100% 100%;
      background-size: contain;
    }
  }

  .top_h_part {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 356px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 14px;
    padding: 15px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, #9dffff, #fff) 100% 1;

    font-weight: bold;
    color: #0ab7ff;
  }

  .top_dashline {
    position: absolute;
    top: 20px;
    width: 700px;
    height: 2px;
    background-image: url('../../assets/img/dashline.png');
    background-repeat: space;
    background-size: contain;
  }

  .dashline_l {
    left: -50px;
  }
  .dashline_r {
    right: -50px;
  }
}
</style>
